# -*- coding:utf-8 -*-
# title           :
# description     :
# author          :Python超人/三月三提供
# date            :2024-07-23
# link            :https://gitcode.net/pythoncr/
# python_version  :3.9
# ==============================================================================
from 神笔码靓.神笔库 import 五角星绘画路径, 五角星路径
from 神笔码靓.神笔库.神笔绘图板 import 神笔绘图板
from 神笔码靓.神笔库.定义集 import *
from 神笔码靓.神笔库.配置 import *
from 神笔码靓.神笔库.通用工具集 import *


class 三月三图标设计(神笔绘图板):
    """
    将图像进行变形，平铺在桌面或者地板上，可以看到的立体画
    """

    def __init__(self, 文件路径):  # 765.4 1133.9
        super(三月三图标设计, self).__init__(作品文件路径=文件路径, 宽=260, 高=380)
        self.显示图框()

    def 创作1(self):
        # self.显示图框()
        # self.显示网格()
        cx, cy = 70, 70
        self.画圆(x=cx, y=cy, 半径=25, 填充颜色=颜色.黑色)
        self.画圆(x=cx, y=cy, 半径=66, 描边宽度=10)
        self.画圆(x=cx, y=cy, 半径=51, 描边宽度=10)
        self.画圆(x=cx, y=cy, 半径=36, 描边宽度=10)
        self.写字(x=cx, y=cy, 文字=f"三{全角空格}三", 字体="峄山碑篆体", 填充颜色=颜色.白色, 字体大小=60).字符间距(-10).平移(44.1, 13).字旋转(-90)
        self.写字(x=cx, y=cy, 文字="三月三", 字体="峄山碑篆体", 填充颜色=颜色.白色, 字体大小=60).字符间距(-10).旋转(90, (cx, cy)).字旋转(-90).平移(44.1, 14)

    def 创作(self):
        self.作者印章().平移(10,20).缩放(0.2)
        # 外框路径 = [('移动', 78.43, 26.63),
        #         ('曲线', 87.03, 21.8, 106.97, 10.9, 134.97, 10.53),
        #         ('曲线', 148.3, 10.37, 173.57, 10.07, 195.9, 28.1),
        #         ('曲线', 200.5, 31.83, 213.73, 45.4, 219.67, 65.9),
        #         ('曲线', 224.97, 84.1, 221.97, 93.93, 223.17, 113.43),
        #         ('曲线', 226.93, 137.1, 228.87, 136.8, 228.67, 153.7),
        #         ('曲线', 228.47, 172.4, 228.1, 184.5, 232.43, 192.83),
        #         ('曲线', 235.6, 196.8, 236.97, 199.1, 240.33, 204.57),
        #         ('曲线', 244.3, 210.97, 247.2, 220.93, 245.3, 236.7),
        #         ('曲线', 244.93, 259.4, 245.77, 237.5, 244.6, 281.13),
        #         ('曲线', 239.7, 304.8, 244.93, 281.33, 239.63, 305.0),
        #         ('曲线', 229.47, 327.8, 239.97, 305.0, 228.83, 328.17),
        #         ('曲线', 222.23, 341.97, 213.73, 349.6, 202.67, 356.1),
        #         ('曲线', 182.87, 367.83, 164.3, 368.6, 144.2, 369.43),
        #         ('曲线', 119.3, 370.47, 101.33, 367.9, 77.93, 359.57),
        #         ('曲线', 67.0, 353.2, 62.7, 349.37, 48.2, 341.8),
        #         ('曲线', 38.5, 338.4, 34.9, 336.87, 29.7, 330.37),
        #         ('曲线', 26.43, 326.27, 22.0, 322.67, 21.43, 312.23),
        #         ('曲线', 15.37, 277.9, 23.83, 271.37, 20.3, 253.73),
        #         ('曲线', 19.17, 251.33, 17.33, 241.73, 15.87, 237.5),
        #         ('曲线', 13.5, 230.63, 13.77, 224.27, 14.0, 211.13),
        #         ('曲线', 14.3, 195.2, 14.1, 194.27, 14.37, 177.13),
        #         ('曲线', 14.47, 170.07, 14.27, 166.03, 14.1, 160.8),
        #         ('曲线', 13.53, 143.87, 15.13, 143.87, 17.53, 139.5),
        #         ('曲线', 21.9, 131.57, 22.23, 135.2, 25.9, 127.23),
        #         ('曲线', 28.37, 121.83, 31.53, 115.03, 31.23, 106.53),
        #         ('曲线', 31.0, 99.6, 32.6, 96.93, 39.9, 77.93),
        #         ('曲线', 52.53, 49.57, 53.43, 50.97, 57.27, 46.27),
        #         ('曲线', 64.3, 37.8, 70.37, 31.17, 78.43, 26.63),
        #         ('结束', )]
        #
        # self.连线(路径点列表=外框路径, 描边颜色="#E62828", 描边宽度=10)
        # self.写字(x=100, y=100, 文字="三月三", 字体大小=126, 字体="小篆体",
        #         填充颜色="#E62828").字符间距(-10).粗体().旋转(90).字旋转(-90).平移(196, 10).缩放(1, 1.5)


if __name__ == '__main__':
    神笔 = 三月三图标设计(文件路径="三月三图标设计.svg")
    神笔.完成()
    # 神笔.生成PDF()
